<h2>Edit post</h2>

<%= render "form.html", categories: @categories, changeset: @changeset,
                        action: user_post_path(@conn, :update, @user, @post) %>

<%= link "Back", to: user_post_path(@conn, :index, @user) %>
